<template>
  <div>
    <el-form ref="form" label-width="80px" size="mini">
      <el-form-item label="新密码">
        <el-input v-model="password" type="password" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini" @click="onSubmit">修改</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
// import md5 from 'js-md5'
// import adminApi from '@/api/admin'
export default {
  data(){
    return{
      password:''
    }
  },
  methods: {
    onSubmit() {
      this.$emit('getPwd',this.password)
      
    }
  }

}
</script>
